﻿using AutoWelding.Utils;

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AutoWelding.Views.Visual
{
    public partial class VisualForm : Form
    {

        public VisualForm()
        {
            InitializeComponent();
        }

        private void VisualForm_Load(object sender, EventArgs e)
        {
            try
            {
                //加载外部程序
                string path = Application.StartupPath + "\\outTools\\mbslave.exe";
                EmbeddedExeTool exeTool = new EmbeddedExeTool();
                exeTool.LoadEXE(panel_content, path);
            }
            catch( Exception ex)
            {
                LogHelper.Error(this.GetType(), "加载外部程序异常", ex);
                MessageBox.Show(ex.Message);
            }
            
        }

    }
}
